const joi = require("joi");
const title = joi.string().required();
const id = joi.string().required();
const content = joi.string().required();
const cover_img =joi.string().dataUri().required();
const pub_date = joi.date();
const state = joi.string().required();
const cate_id = joi.string().required();
const cate_pid = joi.string().required();
const is_delete = joi.string().required();
const author_id = joi.string().required();
/**
 * 新增文章
 */
exports.addArticleSchema = {
    body:{
        title,
        content,
        cover_img,
        pub_date,
        state,
        cate_id,
        cate_pid,
        author_id,
    }
}
/**
 * 删除文章
 */
exports.removeArticleSchema = {
    body:{
        id
    }
}
/**
 * 修改文章
 */
exports.updateArticleSchema = {
    body:{
        id
    }
}
/**
 * 获取用户文章
 */
exports.getUserArticalSchema = {
    body:{
        author_id
    }
}